<template>
    <el-main>
        <el-main class="ep-body">
<epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_INJURY_CB" psTagType="PERSON_AAB001_GROUP">
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
			<epl-userMessage dataType="person" isCodeType idCount="10" :panel="panel">
				<epl-userMessageItem title="当前待遇" :sum="form.total_money.value" :panel="panel">
                        <epl-column label="扣发总月数" :value="form.total_month.value"></epl-column>
                        <epl-column label="扣发总金额" :value="'  ￥'+form.total_money.value"></epl-column>
			    </epl-userMessageItem>
            </epl-userMessage>
			<el-form :model="form" ref="form" :rules="rules">
            <el-collapse v-model="activeNames" >
					<el-row :gutter="10">
						<ep-input colspan="8" label="人员编号" name="aac001" :property="form.aac001" placeholder=""
								  p="H" ></ep-input>
						<ep-input colspan="8" label="单位编码" name="aab001" :property="form.aab001" placeholder=""
								  p="H" ></ep-input>
						<ep-input colspan="8" label="组织ID" name="aaz001" :property="form.aaz001" placeholder=""
								  p="H" ></ep-input>
						<ep-input colspan="8" label="业务日志ID" name="aaz002" :property="form.aaz002" placeholder=""
								  p="H" ></ep-input>
						<ep-input colspan="8" label="组织名称" name="aab004" :property="form.aab004" placeholder=""
								  p="H" ></ep-input>
						<ep-input colspan="8" label="工伤认定信息ID" name="aaz127" :property="form.aaz127" placeholder=""
								  p="H" ></ep-input>
						<ep-input colspan="8" label="总月数"  name="total_month" :property="form.total_month" placeholder=""
									p="H"  ></ep-input>
						<ep-input colspan="8" label="总金额"  name="total_money" :property="form.total_money" placeholder=""
									p="H"  ></ep-input>
					</el-row>
            <el-collapse-item title="请输入工伤认定信息" name="1" openStatus="true">
                <el-card class="ep-card">
                    <ep-input colspan="8" label="单位编号"  name="aab001" :property="form.aab001" placeholder=""
                                  p="H" ></ep-input>
                    <ep-input colspan="8" label="单位管理码"  name="aab999" :property="form.aab999" placeholder=""
                                  p="H"></ep-input>
					<el-row :gutter="10">
                        <epl-search-input colspan="8" label="统一社会信用代码" name="aab000" :property="form.aab000" placeholder="请输入统一社会信用代码"
                                  p="R" :datas="{formData:form,panel:panel}" type="company" tagType="COMPANY_AAB000_EXACT" api="/business/d100insiup/d01companycommon/CpQueryComm/doCpQueryComm01">
                            <epl-search-input-item header="统一社会信用代码"  name="bab010"></epl-search-input-item>
                            <epl-search-input-item header="单位名称" name="aab069"></epl-search-input-item>
                        </epl-search-input>
                        <ep-input colspan="16" label="单位名称" name="aab069" :property="form.aab069" placeholder=""
                                  p="D" ></ep-input>
                        </el-row>
					<el-row :gutter="10">
                        <ep-input colspan="8" label="工伤认定书编号" name="alc011" rules="this.$localRules.isAlc011" :property="form.alc011" placeholder="请输入工伤认定书编号"
                                  p="R" :datas="{formData:form,panel:panel}" isChange></ep-input>
                        <ep-date colspan="8" label="工伤发生时间" name="alc020"  rules="this.$localRules.DateCheck"   :property="form.alc020" placeholder="请选择工伤发生时间"
                                  p="R" :datas="{formData:form,panel:panel}" type="date" format="yyyy-MM-dd"  isChange></ep-date>
                        <ep-date colspan="8" label="工伤认定日期"  name="alc031"   rules="this.$localRules.DateCheck"  :property="form.alc031" placeholder="请选择工伤认定日期"
                                  p="R" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" isChange></ep-date></el-row>
                    <el-row :gutter="10">
                        <ep-date colspan="8" label="工伤报告日期"  name="alc026"  rules="this.$localRules.DateCheck"  :property="form.alc026" placeholder="请选择工伤报告日期"
                                  p="E" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" isChange></ep-date>
                        <ep-date colspan="8" label="工伤认定申请日期"  name="aae127"  rules="this.$localRules.DateCheck"   :property="form.aae127" placeholder="请选择工伤认定申请日期"
                                  p="R" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" isChange></ep-date>
                        <ep-select colspan="8" label="工伤认定结论" name="ala015"   :property="form.ala015" placeholder="请选择工伤认定结论"
                                  p="R" :datas="{formData:form}" codetype="ALA015" isChange></ep-select></el-row>       
                    <el-row :gutter="10">
						<ep-select colspan="16" label="认定依据类别" name="ala016"   :property="form.ala016" placeholder="请选择认定依据类别"
                                  p="R" codetype="ALA016"  ></ep-select>
                        <ep-select colspan="8" label="工伤认定机构" name="alc030"   :property="form.alc030" placeholder="请选择工伤认定机构"
                                  p="R" codetype="ALC030" ></ep-select>
                    </el-row>

					<el-row :gutter="10">
                        <ep-select colspan="8" label="事故类别" name="ala028"   :property="form.ala028" placeholder="请选择事故类别"
                                  p="R" codetype="ALA028" ></ep-select> 
                        <ep-select colspan="8" label="工伤类别" name="alc027"   :property="form.alc027" placeholder="请选择工伤类别"
                                  p="R" codetype="ALC027" ></ep-select>
						<ep-select colspan="8" label="伤害程度" name="alc021"   :property="form.alc021" placeholder="请选择伤害程度"
                                  p="R" codetype="ALC021" ></ep-select></el-row>
                    <el-row :gutter="10">
					<ep-textarea colspan="24" label="伤害部位描述" name="alc022" :property="form.alc022" placeholder="请输入伤害部位描述"
                                  p="E" :rows="3"></ep-textarea>
					</el-row>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="伤害部位1" name="alc042"   :property="form.alc042" placeholder="请选择伤害部位"
                                  p="R" codetype="ALC042" :datas="{formData:form,panel:panel}" isChange isCodeType></ep-select>
                        <ep-select colspan="8" label="伤害部位2" name="alc043" :property="form.alc043" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC043" :datas="{formData:form,panel:panel}" isChange isCodeType
                                  SelectFilterData=" aaa102 = ':alc042' "></ep-select>
                        <ep-select colspan="8" label="伤害部位3" name="alc044" :property="form.alc044" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC044" :datas="{formData:form,panel:panel}" isChange isCodeType
                                  SelectFilterData=" aaa102 = ':alc043' "></ep-select></el-row>    
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="伤害部位4" name="alc046" :property="form.alc046" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC046" :datas="{formData:form,panel:panel}" isChange isCodeType
                                  SelectFilterData=" aaa102 = ':alc044' "></ep-select>
                        <ep-select colspan="8" label="伤害部位5" name="alc047" :property="form.alc047" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC047" SelectFilterData=" aaa102 = ':alc046' "></ep-select>
                        <ep-select colspan="8" label="职业(工种)" name="aca111"   :property="form.aca111" placeholder="请选择职业工种"
                                  p="R" codetype="ACA111" ></ep-select></el-row>                      
 	                <el-row :gutter="10">
                        <ep-date colspan="8" label="接触职业病危害日期" name="blc150" :property="form.blc150" :placeholder="form.blc150.placeholder"
                                  p="D" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" :datas="{formData:form,panel:panel}" isChange></ep-date>
                        <ep-number colspan="8" label="接触职业病危害月数" name="alc048" :property="form.alc048" :placeholder="form.alc048.placeholder"
                                  p="D"></ep-number>
                        <ep-select colspan="8" label="职业病名称1" name="ala017" :property="form.ala017" :placeholder="form.ala017.placeholder"
                                  p="D" codetype="ALA017" :datas="{formData:form,panel:panel}" isChange isCodeType></ep-select></el-row> 
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="职业病名称2" name="ala029" :property="form.ala029" :placeholder="form.ala029.placeholder"
                                  p="D" codetype="ALA017" 
                                  SelectFilterData=" aaa102 = ':ala017' "></ep-select>
                        <ep-date colspan="8" label="因工死亡日期"  name="alc040"  :property="form.alc040" :placeholder="form.alc040.placeholder"
                                      p="D" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" :datas="{formData:form,panel:panel}" isChange></ep-date></el-row>
                    <el-row :gutter="10">
                        <ep-textarea colspan="24"  label="伤害事件情况" name="alc006" :property="form.alc006" placeholder="请输入伤害事件情况"
                                  p="E" :rows="3" ></ep-textarea>
                    </el-row>
                </el-card>
            </el-collapse-item>

			<el-collapse-item title="请输入劳动能力鉴定信息" name="2" openStatus="true">
                <el-card class="ep-card">
						<el-row :gutter="10">
							<ep-input colspan="8" label="劳动能力鉴定书编号" name="alc035" rules="this.$localRules.isAlc035" :property="form.alc035" placeholder="请输入劳动能力鉴定书编号"
									p="R" :datas="{formData:form,panel:panel}" isChange></ep-input>
							<ep-date colspan="8" label="劳动能力鉴定日期"  name="alc034" rules="this.$localRules.DateCheck" :property="form.alc034" placeholder="请选择劳动能力鉴定日期" 
									p="R"  type="date" format="yyyy-MM-dd"></ep-date>
							<ep-select colspan="8" label="鉴定类别" name="ala019" :property="form.ala019" placeholder="请选择鉴定类别"
									p="R" codetype="ALA019" :datas="{formData:form}" isChange></ep-select></el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="伤残等级" name="ala040" :property="form.ala040" placeholder="请选择伤残等级"
									p="R" codetype="ALA040"  ></ep-select>
							<ep-select colspan="8" label="生活自理障碍等级" name="alc060" :property="form.alc060" placeholder="请选择生活自理障碍等级"
									p="R" codetype="ALC060"  ></ep-select>
							<ep-select colspan="8" label="辅助器具配置确认结论" name="alc055" :property="form.alc055" placeholder="请选择辅助器具配置确认结论"
									p="R" codetype="ALC055" :datas="{formData:form}" isChange ></ep-select>
						</el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="辅助器具配置项目1" name="alc056" :property="form.alc056" :placeholder="form.alc056.placeholder"
									p="D" codetype="ALC056" :datas="{formData:form,panel:panel}"  isChange isCodeType></ep-select>
							<ep-select colspan="8" label="辅助器具配置项目2" name="alc057" :property="form.alc057" :placeholder="form.alc057.placeholder"
									p="D" codetype="ALC056" :datas="{formData:form,panel:panel}"  isChange isCodeType></ep-select>
							<ep-select colspan="8" label="辅助器具配置项目3" name="alc058" :property="form.alc058" :placeholder="form.alc058.placeholder"
									p="D" codetype="ALC056" ></ep-select>
						</el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="康复性治疗确认结论" name="alc059" :property="form.alc059" placeholder="请选择康复性治疗确认结论"
									p="R" codetype="ALC059"  ></ep-select>
							<ep-select colspan="8" label="工伤直接导致疾病确认结论" name="alc062" :property="form.alc062" placeholder="请选择工伤直接导致疾病确认结论"
									p="R" codetype="ALC062"  ></ep-select>
							<ep-select colspan="8" label="旧伤复发确认结论" name="alc063" :property="form.alc063" placeholder="请选择旧伤复发确认结论"
									p="R" codetype="ALC063"  ></ep-select>
						</el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="停工留薪期确认结论" name="alc067" :property="form.alc067" placeholder="请选择停工留薪期确认结论"
									p="R" codetype="ALC067"  :datas="{formData:form}" isChange></ep-select>
							<ep-number colspan="8" label="停工留薪期天数" name="alc054" :property="form.alc054" placeholder=""
									p="D" ></ep-number>
							<ep-select colspan="8" label="丧失劳动能力鉴定结论" name="alc068" :property="form.alc068" placeholder="请选择丧失劳动能力鉴定结论"
									p="R" codetype="ALC068"  ></ep-select>
						</el-row>
                </el-card>
			</el-collapse-item>

            <el-collapse-item title="请输入定期待遇发放信息" name="3" openStatus="true">
				<el-card class="ep-card">
					<el-row :gutter="10">
						<ep-select colspan="8" label="待遇发放方式" name="aae145" :property="form.aae145" placeholder="请选择待遇发放方式"
									p="R" codetype="AAE145" :datas="{formData:form,panel:panel}" isChange>
						</ep-select>
					</el-row>
					<el-row :gutter="10">
						 <ep-select colspan="8" label="发放银行" name="aaz065" :property="form.aaz065" placeholder="请选择发放银行"
                            p="R" codetype="AAZ065"></ep-select>
						<ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010" placeholder="请输入银行账号"
									p="R"  ></ep-input>
						<ep-input colspan="8" label="银行开户名" name="aae009" :property="form.aae009" placeholder="请输入银行开户名"
									p="R"  ></ep-input>
					</el-row>
					<el-row :gutter="10">
						<epl-search-bank colspan="8" label="开户行行号" name="aaf002" :property="form.aaf002" placeholder="请选择新开户行行号"
                                         p="R" :datas="{formData: form}" codetype="AAZ065" bankName="aaz065" show rules="this.$rules.test_noBlank"></epl-search-bank>
						<ep-input colspan="16" label="开户行名称" name="bac049" :property="form.bac049" placeholder=""
									p="D"  ></ep-input>

					</el-row>
					
				</el-card>

			</el-collapse-item>
</el-collapse>			

			<el-card class="ep-card" v-show="showtable">
			<ep-title>定期待遇项目</ep-title>
				<ep-table :data="tableData1" height="250" border style="width: 100%;" :titleFilter="demo">
							<ep-table-column sortable name="aaa036" header="待遇类别"></ep-table-column>
							<ep-table-column sortable name="aae041" header="开始年月"></ep-table-column>
							<ep-table-column sortable name="aae042" header="终止年月"></ep-table-column>
							<ep-table-column sortable name="aae019" header="工伤待遇金额"></ep-table-column>
				</ep-table>
			</el-card>
			<el-card class="ep-card">
			<el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save"  @formValidate="formValidate" 
                                    :validate="['form']"   :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
                    </el-row>
            </el-card>
            </el-form>

        </el-main>
    </el-main>
</template>


<script src="../js/InjuryHistoryRegJS.js"></script>
